package com.iot.core.domain;

import com.alibaba.fastjson.JSONObject;
import com.iot.core.utils.StringUtil;

import java.io.Serializable;

public class PageSO implements Serializable {

    private Integer page = 1;
    private Integer limit = 10;
    private String sort;
    private String order;
    private JSONObject params;
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getSort() {
        return StringUtil.humpToUnderline(sort);
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public JSONObject getParams() {
        return params;
    }

    public void setParams(JSONObject params) {
        this.params = params;
    }
}
